﻿@* 数据访问层树形查询参数对象 *@
@using Util.Generators.Helpers
@model Util.Generators.Contexts.EntityContext
@{
    var service = new GenerateService( Model );
    var query = service.GetQuery();
    var description = $"{Model.Description}查询参数";
}
namespace @service.GetDataNamespace( "Queries",true );

/// <summary>
/// @description
/// </summary>
public class @query : @service.GetTreeQueryParameter() {
@foreach (var property in Model.Properties) {
    if ( property.IsKey )
        continue;
    if ( property.IsDeleted )
        continue;
    if ( property.IsCreatorId )
        continue;
    if ( property.IsLastModifierId )
        continue;
    if ( property.IsVersion )
        continue;
    if ( property.IsExtraProperties )
        continue;
    if ( service.IsTreeEntityProperty( property ) )
        continue;
    if ( property.SystemType == Util.Generators.SystemType.DateTime ) {
<text>    /// <summary>
    /// 起始@(property.Description)
    /// </summary>
    [Display( Name = "@service.GetPropertyI18nKey(property,"begin")" )]
    public DateTime? @service.GetBeginPropertyName(property) { get; set; }
    /// <summary>
    /// 结束@(property.Description)
    /// </summary>
    [Display( Name = "@service.GetPropertyI18nKey(property,"end")" )]
    public DateTime? @service.GetEndPropertyName(property) { get; set; }
</text>
continue;
}
<text>    /// <summary>
    /// @property.Description
    ///</summary>
    [Display( Name = "@service.GetPropertyI18nKey(property)" )]
    public @property.NullableTypeName @property.Name { get; set; }
</text>
}
}